package com.ruoyi.project.system.fuelconsumptioninfo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 【请填写功能名称】对象 ve_fuelconsumptioninfo
 * 
 * @author ruoyi
 * @date 2024-01-07
 */
public class VeFuelconsumptioninfoVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long consumptionID;

    /** 车id */
    @Excel(name = "车id")
    private Long tripID;

    /** 加油的日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加油的日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumptionDate;

    /** 加油量 */
    @Excel(name = "加油量")
    private BigDecimal litersAdded;

    /** 油价格 */
    @Excel(name = "油价格")
    private BigDecimal costPerLiter;

    /** 总油费 */
    @Excel(name = "总油费")
    private BigDecimal totalCost;

    public void setConsumptionID(Long consumptionID)
    {
        this.consumptionID = consumptionID;
    }

    public Long getConsumptionID()
    {
        return consumptionID;
    }
    public void setTripID(Long tripID)
    {
        this.tripID = tripID;
    }

    public Long getTripID()
    {
        return tripID;
    }
    public void setConsumptionDate(Date consumptionDate)
    {
        this.consumptionDate = consumptionDate;
    }

    public Date getConsumptionDate()
    {
        return consumptionDate;
    }
    public void setLitersAdded(BigDecimal litersAdded)
    {
        this.litersAdded = litersAdded;
    }

    public BigDecimal getLitersAdded()
    {
        return litersAdded;
    }
    public void setCostPerLiter(BigDecimal costPerLiter)
    {
        this.costPerLiter = costPerLiter;
    }

    public BigDecimal getCostPerLiter()
    {
        return costPerLiter;
    }
    public void setTotalCost(BigDecimal totalCost)
    {
        this.totalCost = totalCost;
    }

    public BigDecimal getTotalCost()
    {
        return totalCost;
    }

    private String cname;

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("consumptionID", getConsumptionID())
            .append("tripID", getTripID())
            .append("consumptionDate", getConsumptionDate())
            .append("litersAdded", getLitersAdded())
            .append("costPerLiter", getCostPerLiter())
            .append("totalCost", getTotalCost())
            .toString();
    }
}
